#ifndef ProgressText_h__
#define ProgressText_h__

#include "cocos2d.h"
using namespace cocos2d;

class ProgressText : public CCNode
{
	ProgressText();
	~ProgressText();
protected:
	CCLabelTTF* m_pCount;
	CCProgressTimer* m_pProgress;
	float maxValue, minValue, curValue;
	CCSize proSize;
	const char* mFormatStr;
public:
	void setFormatStr(const char* str);
	void setProgress(float value);
	void setPecent(float value);
	void setRect(float min, float max);
	CCLabelTTF* getText(){return this->m_pCount;}
	void initWithFile(const char *pszProgressFileName, const char* fontName, float fontSize);
	static ProgressText* create(const char* pszProgressFileName, const char* fontName, float fontSize);
};
#endif // ProgressText_h__
